const modelesFiles = require.context('./', true, /.ts$/)

export const directives = modelesFiles.keys().reduce((modules, modulePath) => {
  const value = modelesFiles(modulePath)
  for(let i in value){
    if(i !== 'directives'){
      modules[i] = value[i]
    }
  }
  return modules
}, {})